<div id="content_body" class="content_body">
	<div class="main-title">
		<fly:translate name="title_1"/><fly:modify name="title_1" />
	</div>	
	<div id="form-ligne">
		<div id="form-titre"><fly:translate name="title_2"/><fly:modify name="title_2" /></div>					
		<div id="form-field">
			<fly:variable name="place_name"/>
		</div>
	</div>
	<div class="main-title"><fly:translate name="title_3"/><fly:modify name="title_3" /></div>
		<div id="form-option">
			<div id="form-single">
				<input type="radio" class="link_create" name="link_create_image" id="single_upload" value="single_upload" checked="checked" state="true"/> <fly:translate name="text_1"/><fly:modify name="text_1" />
			</div>
			<div id="form-multi">
				<input type="radio" class="link_create" name="link_create_image" id="multi_upload" value="multi_upload" state="false"/> <fly:translate name="text_2"/><fly:modify name="text_2" />
			</div>
		</div>			  
		<div id="sigle_file_upload">
					<div id="form-ligne">	
						<div id="form-titre"><fly:translate name="label_2"/><fly:modify name="label_2" /></div>
						<div id="form-field">
							<input type="text" name="author_1" id="author_1" maxlength="255" size="32"/>	
						</div>
					</div>	
					<div id="form-ligne">
						<div id="form-titre"><fly:translate name="label_1"/><fly:modify name="label_1" /></div>					
						<div id="form-field">
			                <input type="file" name="file" id="file" class="oblig" />
			                <input type="hidden" name="MAX_FILE_SIZE" value="6000000" />
			       		 </div>			        	
		            </div>
		            <div id="form-ligne">		
						<div id="swfupload-control_3">
						    <ol id="log_3"></ol>  
						</div>
					</div>
		</div>
		<div id="multiple_file_upload" style="display:none;" >
			<form method="post" name="frm_multiple_upload"  enctype="multipart/form-data" id="frm_multiple_upload">				
				<div id="form-ligne">	
					<div id="form-titre"><fly:translate name="label_2"/><fly:modify name="label_2" /></div>
					<div id="form-field">
						<input type="text" name="author" id="author_2" maxlength="255" size="32"/>	
					</div>
				</div>		           
			</form>
			<input type="hidden"  id="id_repertoire" value="<fly:variable name='id_repertoire' />"/>
			<input type="hidden"  id="id_map" value="<fly:variable name='id_map' />"/>
			<input type="hidden"  id="ajax_upload_file" value="<fly:variable name='ajax_upload_file' />"/>
			<input type="hidden" id="ajax_upload_save" value="<fly:variable name='ajax_upload_save' />"/>
			<input type="hidden" id="max_file_size_upload" value="<fly:variable name='max_file_size_upload' />"/>
		
			<div id="form-ligne">	
				<fly:translate name="text_3"/><fly:modify name="text_3" />
			</div>	
			<div id="form-ligne">		
				<div id="swfupload-control">
					<p><fly:translate name="text_upload" /><fly:modify name="text_upload" /></p>
				    <input type="button" id="button" />  
				    <p id="queuestatus" ></p>  
				    <ol id="log"></ol>  
				</div>
			</div>
		</div>
	<div class="main-title"><fly:translate name="title_4"/><fly:modify name="title_4" /></div>
	
		<div id="form-option">
			<div id="form-single">
				<input type="radio" class="link_create_video" name="link_create_image_video" id="single_upload_video" value="single_upload_video" checked="checked" state="true"/> <fly:translate name="text_4"/><fly:modify name="text_4" /> 
			</div>
			<div id="form-multi">
				<input type="radio" class="link_create_video" name="link_create_image_video" id="multi_upload_video" value="multi_upload_video" state="false"/> <fly:translate name="text_5"/><fly:modify name="text_5" />
			</div>
		</div>				  
		<div id="sigle_file_upload_video">
					<div id="form-ligne">	
						<div id="form-titre"><fly:translate name="label_2"/><fly:modify name="label_2" /></div>
						<div id="form-field">
							<input type="text" name="author_4" id="author_4" maxlength="255" size="32"/>	
						</div>
					</div>	
					<div id="form-ligne">
						<div id="form-titre"><fly:translate name="label_1"/><fly:modify name="label_1" /></div>					
						<div id="form-field">
			                <input type="file" name="file_video" id="file_video" class="oblig" />
			                <input type="hidden" name="MAX_FILE_SIZE" value="6000000" />
			       		 </div>			        	
		            </div>
		            <div id="form-ligne">		
						<div id="swfupload-control_4">
						    <ol id="log_4"></ol>  
						</div>
					</div>
		</div>
		<div id="multiple_file_upload_video" style="display:none;" >
			<form method="post" name="frm_multiple_upload"  enctype="multipart/form-data" id="frm_multiple_upload">				
				<div id="form-ligne">	
					<div id="form-titre"><fly:translate name="label_2"/><fly:modify name="label_2" /></div>
					<div id="form-field">
						<input type="text" name="author_5" id="author_5" maxlength="255" size="32"/>	
					</div>
				</div>		           
			</form>
			<input type="hidden"  id="id_repertoire_video" value="<fly:variable name='id_repertoire_video' />"/>
			<input type="hidden"  id="id_map" value="<fly:variable name='id_map' />"/>
			<input type="hidden"  id="ajax_upload_file_video" value="<fly:variable name='ajax_upload_file_video' />"/>
			<input type="hidden" id="ajax_upload_save_video" value="<fly:variable name='ajax_upload_save_video' />"/>
			<input type="hidden" id="max_file_size_upload_video" value="<fly:variable name='max_file_size_upload_video' />"/>
		
			<div id="form-ligne">	
				<fly:translate name="text_6"/><fly:modify name="text_6" />
			</div>	
			<div id="form-ligne">		
				<div id="swfupload-control_5">
					<p><fly:translate name="text_upload" /><fly:modify name="text_upload" /></p>
				    <input type="button" id="button_video" />  
				    <p id="queuestatus" ></p>  
				    <ol id="log_5"></ol>  
				</div>
			</div>
		</div>
	<form method="post">
		<input type="submit" name="finish" id="finish" value="<fly:translate name="button_2" />" /><fly:modify name="button_2" />
	</form>
</div>
<script language="JavaScript" type="text/javascript">
var rep_type = "<fly:variable name='rep_type_mime' />";
var rep_ajax_photo = "<fly:variable name='rep_ajax_photo' />";
var rep_ajax_video = "<fly:variable name='rep_ajax_video' />";
var rep_id_photo = "<fly:variable name='rep_id_photo' />";
var rep_id_video = "<fly:variable name='rep_id_video' />";
var id_location = "<fly:variable name='id_location' />";    
	
    $(document).ready(function() {
    	
    	$('#single_upload').attr('checked')?$('#sigle_file_upload').show()+$('#multiple_file_upload').hide():$('#multiple_file_upload').show()+$('#sigle_file_upload').hide();
    	$('.link_create').click(function(){
    		this.id=='single_upload'?$('#sigle_file_upload').show()+$('#multiple_file_upload').hide():$('#multiple_file_upload').show()+$('#sigle_file_upload').hide();
    	});
    	$('.link_create_video').click(function(){
    		this.id=='single_upload_video'?$('#sigle_file_upload_video').show()+$('#multiple_file_upload_video').hide():$('#multiple_file_upload_video').show()+$('#sigle_file_upload_video').hide();
    	});
    	
    	
		$('#id_repertoire_2').change(function() {
			$('#repertoire_2').html($('option:selected',this).attr('title'));		
		});
			
		
	});
</script>